<?php
//use Illuminate\Support\Facades\Schema;
use Jialeo\LaravelSchemaExtend\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateConfigsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('configs', function (Blueprint $table) {
			$table->comment = '站点配置表';
            $table->increments('id')->comment('站点配置ID');
			$table->string('title')->default('')->comment('后台名称');
			$table->string('image_id')->default('')->comment('登录图');
			$table->tinyInteger('image_status')->default(1)->comment('图片储存:1=本地,2=七牛云');
			$table->timestamps(); 
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('configs');
    }
}
